﻿using System;
using System.Collections;
using System.Collections.Generic;

namespace Ausm.ObjectStore.Example.Entities
{
    [Table("dbo.Person")]
    public abstract class Person
    {
        [Mapping(FieldName = "Id"), IsPrimaryKey]
        public abstract int Id { get; }

        [Mapping(FieldName = "Name")]
        public abstract string Name { get; set; }

        [ReferenceListMapping(typeof(Address), "Person")]
        public abstract IEnumerable<Address> Adresses { get; }
    }
}
